﻿/**
 * Peter
 * Created by: Peter Development Team
 *    http://peter.codeplex.com/
 * 
 * GNU General Public License version 2 (GPLv2)
 *    http://peter.codeplex.com/license
 *
 *  This code is provided on an AS IS basis, with no WARRANTIES,
 *  CONDITIONS or GUARANTEES of any kind.
 *
 **/

using System.Threading.Tasks;

namespace Peter.NodeJs
{
   /// <summary>
   /// Common interface for node js support.
   /// </summary>
   public interface INodeJs
   {
      /// <summary>
      /// Gets the value of the given config variable.
      /// </summary>
      /// <param name="variable">Config variable to get value for.</param>
      /// <returns>The value of the given variable.</returns>
      Task <string> GetNpmConfig (string variable);

      /// <summary>
      /// Sets the value of the given config variable
      /// </summary>
      /// <param name="variable">Variable to set value for.</param>
      /// <param name="value">Value to set.</param>
      void SetNpmConfig (string variable, string value);
   }
}